<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<span id="show">
			
		</span>
		<script type="text/javascript">
			function Person(name,chinese,math){
				this.name=name;
				this.chinese=chinese;
				this.math=math;
			}
			Person.prototype.showName=function(){
				return this.name;
			}
			Person.prototype.showChinese=function(){
				return this.chinese;
			}
			Person.prototype.showMath=function(){
				return this.math;
			}
			function Student(name,chinese,math,age){
				Person.call(this,name,chinese,math);
				this.age=age;
			}
			Student.prototype=new Person();
			Student.prototype.showAge=function(){
				return this.age;
			}
			var stu=new Student("张三",98,80,25);
			document.getElementById("show").innerHTML="姓名"+stu.showName()+"<br/>"+
			"语文"+stu.showChinese()+"<br/>"+"数学"+stu.showMath()+"<br/>"+"年龄"+stu.showAge();
		</script>
	</body>
</html>
